﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="CleanEstablishmentList.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.CodeSetup.CleanEstablishmentList" %>

<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure1" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure2" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure3" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure4" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="../../CSS/common.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </AjaxControlToolkit:ToolkitScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
            <tr>
                <td colspan="2" class="Page_Head">
                    <WebStructure3:PageHead ID="PageHead" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="Page_Left">
                    <WebStructure4:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M140912" />
                </td>
                <td class="Page_Right">
                    <table class="Page_Contents">
                        <tr>
                            <td class="TabStrip">
                                <WebStructure2:TabStrip ID="TabStrip" CurrMenuID="M140810" ParentMenuID="M140912" DMenuMode="CurrOnly"
                                    runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="Contents" style="height: 16px">
                                <!--**********context Begin *****************-->

                                <table width="100%" class="SearchArea">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblLocation" runat="server" Text="Location"></asp:Label>
                                            <asp:DropDownList ID="ddlLocation" runat="server" CssClass="ddlStation">
                                            </asp:DropDownList>&nbsp;
                                            <asp:Label ID="lblShift" runat="server" Text="Shift"></asp:Label>
                                            <asp:DropDownList ID="ddlShift" runat="server">
                                            </asp:DropDownList>
                                            <asp:Label ID="lblObsolete" runat="server">Obsolete:</asp:Label>
                                            <asp:CheckBox ID="chkVoid" runat="server" Text="" />
                                        </td>
                                        <td align="right">
                                            <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                                            <asp:Button ID="btnAddNew" runat="server" Text="Add  new" OnClick="btnAddNew_Click" /></td>
                                    </tr>
                                </table>
                                <div style=" width:100% ;padding-top:5px;">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                            <APJ:CommonGridView ID="grvData" runat="server" AutoGenerateColumns="False" OnNeedDataBind="grvData_NeedDataBind"
                                                OnRowDataBound="grvData_RowDataBound" DataKeyNames="CleanEstablishmentID" AllowSorting="True"
                                                AscPic="~/Images/Common/arrow_up_green.png" BorderColor="black" CssClass="GridView"
                                                DescPic="~/Images/Common/arrow_down_green.png" PageLinkCount="7" AllowPaging="True">
                                                <EmptyDataRowStyle CssClass="GridView_Header" />
                                                <PagerTemplate>
                                                    <asp:Table ID="CommonPagerTemplate" runat="server" Width="100%">
                                                        <asp:TableRow ID="COMGRIDV_TR" runat="server">
                                                            <asp:TableCell ID="COMGRIDV_Pager_Cell_TotalRecords" runat="server" CssClass="GridView_Pager_Cell_TotalRecords">
                                                                <asp:Label ID="Lbl_T_TotalRecords" runat="server">Total Records:</asp:Label>
                                                                <asp:Label ID="Lbl_V_TotalRecords" runat="server"></asp:Label>
                                                                &nbsp; &nbsp;
                                                                <asp:Label ID="Lbl_V_CurPage" runat="server"></asp:Label>
                                                                &nbsp;<asp:Label ID="Label1" runat="server">/</asp:Label>
                                                                &nbsp;<asp:Label ID="Lbl_V_TotalPages" runat="server"></asp:Label>
                                                            </asp:TableCell>
                                                            <asp:TableCell ID="COMGRIDV_Pager_Cell_PageSize" runat="server" CssClass="GridView_Pager_Cell_PageSize">
                                                                <asp:Label ID="Lbl_T_PageSize" runat="server">PageSize:</asp:Label>
                                                                &nbsp;&nbsp;<asp:DropDownList ID="DDL_PageSize" runat="server" AutoPostBack="True">
                                                                    <asp:ListItem Value="5">5</asp:ListItem>
                                                                    <asp:ListItem Value="10">10</asp:ListItem>
                                                                    <asp:ListItem Value="15">15</asp:ListItem>
                                                                    <asp:ListItem Value="20">20</asp:ListItem>
                                                                    <asp:ListItem Value="25">25</asp:ListItem>
                                                                    <asp:ListItem Value="30">30</asp:ListItem>
                                                                </asp:DropDownList>
                                                            </asp:TableCell>
                                                            <asp:TableCell ID="COMGRIDV_Pager_Cell_Prev" runat="server" CssClass="GridView_Pager_Cell_Prev">
                                                                <asp:LinkButton ID="LBtn_Previous" runat="server" CommandArgument="Prev" CommandName="Page"><</asp:LinkButton>
                                                            </asp:TableCell>
                                                            <asp:TableCell ID="COMGRIDV_Pager_Cell_PagerLink" runat="server" CssClass="GridView_Pager_Cell_PagerLink">
                                                                <asp:Panel ID="Pnl_PageLink" runat="server" CssClass="GridView_Pager_PageLinkPanel">
                                                                </asp:Panel>
                                                            </asp:TableCell>
                                                            <asp:TableCell ID="COMGRIDV_Pager_Cell_Next" runat="server" CssClass="GridView_Pager_Cell_Next">
                                                                <asp:LinkButton ID="LBtn_Next" runat="server" CommandArgument="Next" CommandName="Page">></asp:LinkButton>
                                                            </asp:TableCell>
                                                        </asp:TableRow>
                                                    </asp:Table>
                                                </PagerTemplate>
                                                <RowStyle CssClass="GridView_Row" />
                                                <HeaderStyle CssClass="GridView_Header" />
                                                <AlternatingRowStyle CssClass="GridView_AlternativeRow" />
                                                <Columns>
                                                    <asp:BoundField DataField="ShiftCode" HeaderText="SOM_CleanListShift" SortExpression="ShiftCode" />
                                                    <asp:BoundField DataField="Establishment" HeaderText="SOM_CleanListEstablishment"
                                                        SortExpression="Establishment" />
                                                    <asp:BoundField DataField="LocationCode" HeaderText="SOM_CleanListLocation" SortExpression="LocationCode" />
                                                    <asp:BoundField DataField="EffectiveFrom" HeaderText="SOM_CleanListStart" SortExpression="EffectiveFrom" />
                                                    <asp:BoundField DataField="EffectiveTo" HeaderText="SOM_CleanListEnd" SortExpression="EffectiveTo" />
                                                    <asp:CheckBoxField DataField="FlagObsolete" HeaderText="SOM_Void" SortExpression="FlagObsolete" />
                                                    <asp:TemplateField>
                                                        <edititemtemplate>
                                                            <asp:TextBox id="TextBox1" runat="server"></asp:TextBox> 
                                                        </edititemtemplate>
                                                        <itemstyle width="5px" />
                                                        <headerstyle width="5px" />
                                                        <itemtemplate>
                                                            <asp:HyperLink id="hypEdit" runat="server" ImageUrl="~/Images/SOM/Edit.gif">HyperLink</asp:HyperLink> 
                                                        </itemtemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EmptyDataTemplate>
                                                    <asp:Table ID="Table1" runat="server" CssClass="GridView_Header_EmptyData">
                                                        <asp:TableRow ID="TableRow1" runat="server">
                                                            <asp:TableCell ID="TableCell1" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell2" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell3" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell4" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell5" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell6" runat="server" Style="border-right: black 1px solid;"></asp:TableCell>
                                                            <asp:TableCell ID="TableCell7" runat="server" Width="5px"></asp:TableCell>
                                                        </asp:TableRow>
                                                    </asp:Table>
                                                </EmptyDataTemplate>
                                            </APJ:CommonGridView>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
                                    </Triggers>
                                </asp:UpdatePanel>
                                </div>
                                <br />
                                <table width="100%">
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <!--**********context End *****************-->
                            </td>
                        </tr>
                        <tr>
                            <td class="Page_Foot" style="height: 65px">
                                <WebStructure1:PageFoot ID="PageFoot" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
